/*
* Copyrigth 2008 Company All rigths reserved
* File Name: ILaboratory.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:31:44
* Description:    Laboratory模块的接口
* Change History: 
* 
* */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingsApp.Model;
using TrainingsApp.DAL;
using System.Web.UI.WebControls;

namespace TrainingsApp.Logic
{
    public class TS_TeachMaterials_Chapter_Logic
    {
        public static TS_TeachMaterials_Chapter_Collecion TS_TeachMaterials_Chapter_ListByPaging(int pageSize, int pageIndex)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_ListByPaging(pageSize, pageIndex);
        }

        public static List<TS_TeachMaterials_Chapter_Entity> TS_TeachMaterials_Chapter_ListByParent(long parentId, long materialsId)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_ListByParent(parentId, materialsId);
        }

        public static TS_TeachMaterials_Chapter_Entity TS_TeachMaterials_Chapter_View(System.Int64 Idx)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_View(Idx);
        }

        public static TS_TeachMaterials_Chapter_Entity TS_TeachMaterials_Chapter_Add(TS_TeachMaterials_Chapter_Entity entity)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_Add(entity);
        }

        public static void TS_TeachMaterials_Chapter_Update(TS_TeachMaterials_Chapter_Entity entity)
        {
            TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_Update(entity);
        }

        public static void TS_TeachMaterials_Chapter_Delete(System.Int64 Idx)
        {
            TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_Delete(Idx);
        }


        public static bool TS_TeachMaterials_Chapter_ExistsByMaterialsId(Int64 materialsId)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_ExistsByMaterialsId(materialsId);
        }

        public static List<TS_TeachMaterials_Chapter_Entity> TS_TeachMaterials_Chapter_ListByMaterialsId(Int64 materialsId)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_ListByMaterialsId(materialsId);
        }

        public static List<TS_TeachMaterials_Chapter_Entity> TS_TeachMaterials_Chapter_ListByTeacherId(System.Int64 UserId)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_ListByTeacherId(UserId);
        }

        public static List<TS_TeachMaterials_Chapter_Entity> TS_TeachMaterials_Chapter_ListByStudentId(System.Int64 UserId)
        {
            return TS_TeachMaterials_Chapter_DAL.TS_TeachMaterials_Chapter_ListByStudentId(UserId);
        }

    }
}
